﻿namespace NativeWin32
{
    using System;
    using System.Runtime.InteropServices;

    internal static class Kernel32Api
    {
        [DllImport("Kernel32.dll", SetLastError = true)]
        public static extern bool FreeLibrary(IntPtr hModule);
        [DllImport("Kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
        public static extern bool GetBinaryType(string lpApplicationName, out uint lpBinaryType);
        [DllImport("Kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)]
        public static extern IntPtr GetModuleHandleA(string lpModuleName);
        [DllImport("Kernel32.dll", SetLastError = true)]
        public static extern bool LocalFree(IntPtr hMem);
    }
}

